dir / -s >a.txt

tree /f >b.txt

F:\>dir /s F:\ > dir.txt

